<template>
  <div class="dialog">
    <el-dialog :visible.sync="ifshow" width="30%" :show-close="false">
      <span>选择您这篇面经岗位的类型：</span>
      <el-select v-model="type" placeholder="请选择">
        <el-option
          v-for="item in options"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary" @click="define">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ['ifshow'],
  data() {
    return {
      dialogVisible: true,
      options: this.$store.getters.getLeftSideCardItem,
      type: ''
    }
  },
  methods: {
    handleClose(done) {},
    cancel() {
      this.$emit('cancel')
    },
    define() {
      this.$emit('define', this.type)
    }
  }
}
</script>

<style>
</style>